package online.takemehand.fx;

import javafx.application.Application;
import javafx.application.Platform;
import javafx.stage.Stage;

public class Main extends Application {

    public static void main(String[] args) {
        launch(args);
    }


    @Override
    public void start(Stage primaryStage) throws Exception {

        System.out.println(Thread.currentThread().getName());

        Platform.runLater(new Runnable() {
            @Override
            public void run() {
                System.out.println(Thread.currentThread().getName());
                System.out.println("Application started");
                for (int i = 0; i < 10; i++) {
                    System.out.println(i);
                }
            }
        });
        System.out.println("Application 11");
    }
}
